<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<body class="hold-transition skin-blue sidebar-mini">
<section class="content-header">
    <h1>设计工时确认单</h1>
</section>
<section class="content">
    <div class="row">
        <form id="sheetForm" class="form-horizontal">
            <div class="col-xs-10 col-xs-offset-1">
                <div class="row" style="margin-top: 58px;">
                    <div class="form-inline">
                        <input name="costType" type="hidden" value="1">
                        <div class="form-group" style="margin-right: 10px;margin-left: 0px;">
                            <label>项目编号</label>
                            <input id="sheetForm-proCode" type="text" name="proCode" class="form-control text-center"
                                   style="border: none; border-bottom: solid 1px #EEEEEE;width:150px;background-color: white;"
                                   autocomplete="off" th:value="${cosSheet.proCode}" readonly>
                        </div>
                        <div class="form-group" style="margin-right: 10px;">
                            <label>项目名称</label>
                            <input id="sheetForm-proName" type="text" name="proName" class="form-control text-center"
                                   style="border: none; border-bottom: solid 1px #EEEEEE;width:300px;background-color: white;"
                                   autocomplete="off" th:value="${cosSheet.proName}" readonly>
                        </div>
                        <div class="form-group" style="margin-right: 10px;">
                            <label>项目数量</label>
                            <input id="sheetForm-proNum" type="number" name="proNum" class="form-control text-center"
                                   style="border: none; border-bottom: solid 1px #EEEEEE;width:100px;background-color: white;"
                                   autocomplete="off" th:value="${cosSheet.proNum}" readonly>
                        </div>
                        <div class="form-group" style="margin-right: 10px;">
                            <label>专业</label>
                            <input id="sheetForm-special" type="text" name="special" class="form-control text-center"
                                   style="border: none; border-bottom: solid 1px #EEEEEE;width:100px;background-color: white;"
                                   autocomplete="off" th:value="${cosSheet.special}" readonly>
                        </div>
                        <div class="form-group" style="margin-right: 10px;">
                            <label>部分</label>
                            <input id="sheetForm-proPart" type="text" name="proPartId" class="form-control text-center"
                                   style="border: none; border-bottom: solid 1px #EEEEEE;width:150px;background-color: white;"
                                   autocomplete="off" th:value="|${cosSheet.special}-${cosSheet.proPart}|" readonly>
                        </div>
                    </div>
                </div>
                <h4 style="margin-top: 60px;">人工工时</h4>
                <table class="t1 t3">
                    <thead>
                    <tr>
                        <td style="width: 10%">序号</td>
                        <td style="width: 23%">工时类别</td>
                        <td style="width: 16%">数量</td>
                        <td style="width: 16%">单位</td>
                        <td style="width: 25%">备注</td>
                        <td></td>
                    </tr>
                    </thead>
                    <tbody id="hours">
                    <tr th:each="cosDetail : ${hCosDetail}">
                        <td>1</td>
                        <td>设计工时</td>
                        <td>
                            <input th:value="${T(com.zw.pdm.util.BigDecimalUtils).valueFormat(cosDetail.quantity)}"
                                   style="background-color: white" disabled="disabled">
                        </td>
                        <td>工日</td>
                        <td>
                            [[${cosDetail.remark}]]
                        </td>
                        <td></td>
                    </tr>
                    </tbody>
                </table>
                <h4 style="margin-top: 50px;">设备重量</h4>
                <table class="t1 t3" id="weightTable">
                    <thead>
                    <tr>
                        <td style="width: 10%">序号</td>
                        <td style="width: 23%">重量类别名称</td>
                        <td style="width: 16%">主要辅材用量</td>
                        <td style="width: 16%">单位</td>
                        <td style="width: 25%">备注</td>
                        <td></td>
                    </tr>
                    </thead>
                    <tbody id="weight">
                    <tr th:each="cosDetail : ${wCosDetail}">
                        <td th:text="${cosDetailStat.count}"></td>
                        <td>
                            [[${cosDetail.describe}]]
                        </td>
                        <td>
                            <input th:value="${T(com.zw.pdm.util.BigDecimalUtils).valueFormat(cosDetail.quantity)}"
                                   style="background-color: white" disabled="disabled">
                        </td>
                        <td>
                            [[${cosDetail.unit}]]
                        </td>
                        <td>
                            [[${cosDetail.remark}]]
                        </td>
                        <td></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="col-xs-10 col-xs-offset-1" style="font-size: 14px;line-height: 200%;margin-top:10px;">
                <div class="col-xs-3" style="padding-left: 0">提报人：[[${cosSheet.createName}]]&nbsp;&nbsp;[[${#dates.format(cosSheet.createTime,'yyyy.MM.dd')}]]</div>
                <div class="col-xs-3">
                    审核：[[${cosSheet.verifyName}]]&nbsp;&nbsp;[[${#dates.format(cosSheet.verifyTime,'yyyy.MM.dd')}]]
                </div>
            </div>
        </form>
    </div>
</section>
<div th:include="include :: footer"></div>
</body>
</html>
